package com.qding.park.adapter.report.controller.v1.form;

import java.util.Date;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.qding.park.adapter.report.valid.CardType;

/**
 * @ClassName ParkInSyncForm
 * @Description TODO(入场记录上报参数)
 * @author LeiYang
 * @Date 2017年4月20日 下午6:33:49
 * @version 1.0.0
 */
public class ParkInSyncForm {
    
    /**
     * @Field @supplyId : TODO(厂商编号)
     */
    @Valid
    @NotEmpty(message="supplyId不能为空")
    private String supplyId;
    
    /**
     * @Field @carNum : TODO(车牌号)
     */
    @NotEmpty(message="carNum不能为空")
    private String carNum;
    
    /**
     * @Field @parkCode : TODO(车场编码)
     */
    @NotEmpty(message="parkCode不能为空")
    private String parkCode;
    
    /**
     * @Field @enInId : TODO(入场流水)
     */
    @NotEmpty(message="enInId不能为空")
    private String enInId;
    
    /**
     * @Field @enInDevice : TODO(入场设备)
     */
    @NotEmpty(message="enInDevice不能为空")
    private String enInDevice;
    
    /**
     * @Field @enterTime : TODO(入场时间)
     */
    @NotNull(message="enterTime不能为空")
    private Date enterTime;
    
    /**
     * @Field @cardType : TODO(卡类型)
     */
    @CardType
    private String cardType;
    
    /**
     * @Field @parkInPic : TODO(入场照片)
     */
    @NotEmpty(message="parkInPic不能为空")
    private String parkInPic;
    
    /**
     * @Field @opName : TODO(操作员)
     */
    private String opName;

    
    public String getSupplyId() {
        return supplyId;
    }

    
    public void setSupplyId(String supplyId) {
        this.supplyId = supplyId;
    }

    
    public String getCarNum() {
        return carNum;
    }

    
    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    
    public String getParkCode() {
        return parkCode;
    }

    
    public void setParkCode(String parkCode) {
        this.parkCode = parkCode;
    }

    
    public String getEnInId() {
        return enInId;
    }

    
    public void setEnInId(String enInId) {
        this.enInId = enInId;
    }

    
    public String getEnInDevice() {
        return enInDevice;
    }

    
    public void setEnInDevice(String enInDevice) {
        this.enInDevice = enInDevice;
    }

    
    public Date getEnterTime() {
        return enterTime;
    }

    
    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }

    
    public String getCardType() {
        return cardType;
    }

    
    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    
    public String getParkInPic() {
        return parkInPic;
    }

    
    public void setParkInPic(String parkInPic) {
        this.parkInPic = parkInPic;
    }

    
    public String getOpName() {
        return opName;
    }

    
    public void setOpName(String opName) {
        this.opName = opName;
    }


    @Override
    public String toString() {
        return "ParkInSyncForm [supplyId=" + supplyId + ", carNum=" + carNum + ", parkCode=" + parkCode + ", enInId="
                + enInId + ", enInDevice=" + enInDevice + ", enterTime=" + enterTime + ", cardType=" + cardType
                + ", parkInPic=" + parkInPic + ", opName=" + opName + "]";
    }

    
    
}
